package com.longcai.cm.moudules.system.service;

import com.longcai.cm.base.service.BaseServiceIface;
import com.longcai.cm.moudules.system.domain.SysDicCode;
import com.longcai.cm.moudules.system.domain.SysDicValue;

import java.util.List;

/**
 * Created by lc-code-maker on SysDicCode.
 */
public interface SysDicCodeService extends BaseServiceIface<SysDicCode> {

    /**
     * 获取单文本类字典
     *
     * @param code 字典编码
     * @return value
     */
    String getTextValueByCode(String code);

    /**
     * 获取字符集类字典
     *
     * @param code 字典编码
     * @return List<value>
     */
    List<String> getListValueByCode(String code);

    /**
     * 获取编码下字典类
     *
     * @param code 字典编码
     * @return List<SysDicValue>
     */
    List<SysDicValue> getListByCode(String code);

}
